/*
Realistic Unit Modification v4.0 Dialog 
v4.0.0.1 [ALPHA]
Concept & Development by Draper & Raps | [VRC]
*/

_which = _this select 0;
_param = _this select 1;

_via = "";
switch (RUM_THel_Special) do {
	case "Normal":{
		_via = "";
	};
	case "Combat Landing":{
		_via = " via combat insertion, ";
	};
	case "Fast Rope":{
		_via = " via fast rope insertion, ";
	};
	case "Para Drop":{
		_via = " via para-drop insertion, ";
	};
};

//hint format ["%1",_param];
switch (_which) do {
	case "insert": {
		_man = _param select 0;
		_pilot = _param select 1;
		_planecallsign = _param select 2;
		
		_stg1 = RUM_RADIO_AssetProvider + " " + "this is" + " " + RUM_COM_Callsign + ", " + "Requesting insertion from" + " " + _planecallsign + ", " + _via + "LZ with ingress and egress has been logged, over";
		_man sidechat toUpper(_stg1);
		sleep (10 + random 5);
		_stg2 = RUM_COM_Callsign + " " + "this is" + " " + RUM_RADIO_AssetProvider + ", " + "Request granted, stand by for flight, out";
		[side _man,"HQ"] sideChat toUpper(_stg2);
		_stg3 = RUM_COM_Callsign + " " + "this is" + " " + _planecallsign + ", " + "Roger Wilco, out";
		sleep (20 + random 5);
		_pilot sidechat toUpper(_stg3);
	};
	case "shuffle": {
		_man = _param select 0;
		_pilot = _param select 1;
		_planecallsign = _param select 2;
		
		_stg1 = RUM_RADIO_AssetProvider + " " + "this is" + " " + RUM_COM_Callsign + ", " + "Requesting shuffle from" + " " + _planecallsign + ", " + _via + "flight plan has been logged, over";
		_man sidechat toUpper(_stg1);
		sleep (10 + random 5);
		_stg2 = RUM_COM_Callsign + " " + "this is" + " " + RUM_RADIO_AssetProvider + ", " + "Request granted, stand by for flight, out";
		[side _man,"HQ"] sideChat toUpper(_stg2);
		_stg3 = RUM_COM_Callsign + " " + "this is" + " " + _planecallsign + ", " + "Roger Wilco, out";
		sleep (20 + random 5);
		_pilot sidechat toUpper(_stg3);
	};
	case "extract": {
		_man = _param select 0;
		_pilot = _param select 1;
		_planecallsign = _param select 2;
		
		_stg1 = RUM_RADIO_AssetProvider + " " + "this is" + " " + RUM_COM_Callsign + ", " + "Requesting extract from" + " " + _planecallsign + ", " + "LZ with ingress and egress has been logged, over";
		_man sidechat toUpper(_stg1);
		sleep (10 + random 5);
		_stg2 = RUM_COM_Callsign + " " + "this is" + " " + RUM_RADIO_AssetProvider + ", " + "Request granted, stand by for flight, out";
		[side _man,"HQ"] sideChat toUpper(_stg2);
		_stg3 = RUM_COM_Callsign + " " + "this is" + " " + _planecallsign + ", " + "Roger Wilco, out";
		sleep (20 + random 5);
		_pilot sidechat toUpper(_stg3);
	};
};

if(true)exitwith{};